home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga Memory Map Needed! / ExecBase
- Date: 8 Feb 1996 16:05:23 +0100
- Organization: dis-
- Message-ID: <4fd3fj$548@serpens.rhein.de>
- References: <4f9itc$ld8@rock101.genie.net> <4facl8$ga0@brachio.zrz.TU-Berlin.DE> <wulfraedDMFxn6.L3y@netcom.com> <4fcnev$b3j@brachio.zrz.TU-Berlin.DE>
- NNTP-Posting-Host: serpens.rhein.de
-
- rawneiha@hercules.zrz.TU-Berlin.DE (Philipp Boerker) writes:
-
- >It will have it from an fixed address of course, but this address could
- >vary from computer to computer, from OS version to OS version. No user code
- >should rely on fixed addresses or other hardware. Supervisor code has to.
- >UNIX shows how to do it.
-
- Rubbish. UNIX uses trap instructions to call system routines. If every
- library function would use a trap this would be abysmally slow. That's
- why shared libraries in UNIX use a different method. Most even use fixed
- addresses for library entry points.
-
- The only method that avoids any absolute address would be to pass a pointer
- to every new task, which wouldn't be consistent (interrupts still have to
- fetch ExecBase from a fixed address) and requires extra magic (because the
- first task has to magically "know" the pointer). And all this just for
- aesthetics with not a single advantage in functionality.
-
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-